import FileSaver from 'file-saver'
export default (data, fileName) => {
    const _data = JSON.stringify(data)
    const blob = new Blob([_data], {type: ''})
    FileSaver.saveAs(blob, fileName);
  }